<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">

<ui:composition>
    <a4j:form>
        <h:panelGroup id="login-box">
            <h:panelGroup rendered="#{SessionsAgent.showLoginBox}">
                <table width="200" border="0" cellpadding="1" cellspacing="0" align="center" valign="middle">
                    <tr height="25" valign="top">
                        <td colspan="2" align="right">
                            <a4j:commandLink reRender="login-box, panel" action="#{SessionsAgent.closeLoginBox}">
                                <img style="margin-right:4px;margin-top:3px" src="static/images/x.png" border="0" width="10" height="10"/>
                            </a4j:commandLink>
                        </td>
                    </tr>
                    <tr>
                        <td width="50">
                            <p class="login_box_text">Username:</p>
                        </td>
                        <td width="150" align="right">
                            <h:inputText id="userName" value="#{SessionsAgent.userName}" class="login_input"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="50">
                            <p class="login_box_text">Password:</p>
                        </td>
                        <td width="150" align="right">
                            <h:inputSecret id="userPassword" value="#{SessionsAgent.userPassword}" class="login_input"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <a4j:commandLink action="#{SessionsAgent.login}" reRender="login-box, panel, messages">
                                <img src="static/images/logowanie.png" border="0"/>
                            </a4j:commandLink>
                        </td>
                    </tr>		
                </table>
            </h:panelGroup>
        </h:panelGroup>
    </a4j:form>
</ui:composition>

</html>

